package com.poker.repository;

import com.poker.entity.UserHonor;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserHonorRepository extends JpaRepository<UserHonor,String> {

    @Query(value = "select * from user_honor where user_id=:userid and activity_id=:activityid",nativeQuery = true)
    UserHonor findByUserAndActivityId(@Param("userid") String userid, @Param("activityid") String activityid);
}
